package com.ruoyi.system.domain.aid;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 承运商对象 aid_carrier
 */
public class AidCarrier extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 承运商ID */
    @Excel(name = "承运商ID")
    private Long carrierId;

    /** 承运商名称 */
    @Excel(name = "承运商名称")
    private String carrierName;

    /** 承运商类型（1个人 2企业） */
    @Excel(name = "承运商类型", readConverterExp = "1=个人,2=企业")
    private String carrierType;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactPerson;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 营业执照编号 */
    @Excel(name = "营业执照编号")
    private String licenseNumber;

    /** 所在地区 */
    @Excel(name = "所在地区")
    private String region;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 服务评分 */
    @Excel(name = "服务评分")
    private Double serviceScore;

    /** 累计运输次数 */
    @Excel(name = "累计运输次数")
    private Integer transportCount;

    public void setCarrierId(Long carrierId) {
        this.carrierId = carrierId;
    }

    public Long getCarrierId() {
        return carrierId;
    }

    public void setCarrierName(String carrierName) {
        this.carrierName = carrierName;
    }

    public String getCarrierName() {
        return carrierName;
    }

    public void setCarrierType(String carrierType) {
        this.carrierType = carrierType;
    }

    public String getCarrierType() {
        return carrierType;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setLicenseNumber(String licenseNumber) {
        this.licenseNumber = licenseNumber;
    }

    public String getLicenseNumber() {
        return licenseNumber;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getRegion() {
        return region;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setServiceScore(Double serviceScore) {
        this.serviceScore = serviceScore;
    }

    public Double getServiceScore() {
        return serviceScore;
    }

    public void setTransportCount(Integer transportCount) {
        this.transportCount = transportCount;
    }

    public Integer getTransportCount() {
        return transportCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("carrierId", getCarrierId())
            .append("carrierName", getCarrierName())
            .append("carrierType", getCarrierType())
            .append("contactPerson", getContactPerson())
            .append("contactPhone", getContactPhone())
            .append("licenseNumber", getLicenseNumber())
            .append("region", getRegion())
            .append("address", getAddress())
            .append("status", getStatus())
            .append("serviceScore", getServiceScore())
            .append("transportCount", getTransportCount())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
} 